//
//  BTCityAndSceneScrollViewController.h
//  BaiduTravel
//
//  Created by Wu Chengwei on 12-9-6.
//
//

#import <UIKit/UIKit.h>
#import "RCBaseVC.h"
#import "MBProgressHUD.h"
#import "NCNaviReturnButton.h"

@class  NCPictureViewerBar;
@class NCSinglePictureViewer;
@class TTTAttributedLabel;


@class BTCityAndSceneScrollViewController;

@protocol LVPhotoPreviewViewControllerDelegate <NSObject>
@optional
-(BOOL) shouldAnimatedWhenViewDidAppearForPhotoPreviewViewController:(BTCityAndSceneScrollViewController *) vc;
-(BOOL) shouldAnimatedWhenViewDidDisappearForPhotoPreviewViewController:(BTCityAndSceneScrollViewController *) vc;
-(CGRect) photoPreviewViewController:(BTCityAndSceneScrollViewController *) vc frameAtIndexWhenDidDisappear:(NSUInteger) index;

-(void) photoPreviewViewControllerBackButtonClicked:(BTCityAndSceneScrollViewController *) vc;

@end


@interface BTCityAndSceneScrollViewController : RCBaseVC<UIScrollViewDelegate>{
    
    UIView                *_contentView;
    UIScrollView          *_scrollView;
    NSMutableArray        *imageDataArray;     //数据数组，可以是字符串类型的链接，也可以是包含信息的对象
    BOOL                  containPictureInfo;//scrollview中的图片是否包含信息
    int                   currentPageNumber;   //当前要显示的图片再数组中的位置
    NSMutableArray        *imageViewArray;          //imageview数组
    UIImageView           *textBGView;
    UILabel    *textLabel;
    UILabel    *_descLabel;
    UILabel               *_timeLabel;
    UILabel               *_dotLabel;
    UIView                *_starView;
    NSMutableArray        *_starArray;
    BOOL                  loadWeb;
    NSMutableArray        *_viewControllers;
    UIView                *_ncPicViewerBar;
    NCNaviReturnButton    *_backButton;
    NCNaviReturnButton    *_saveButton;
    UILabel               *_picLocation;
    NCSinglePictureViewer *_startViewController;
    UIView                *_startView;
    NSMutableArray        *_saveFlagArray;
    NSString              *_sid;      //sid 用来找离线图片
    
    //动画
    UIImage               *_fromImage;
    CGRect                _fromRect;
    UIImageView           *_fromImageView;
    
}

@property (nonatomic, retain) UIPageControl         *pageController;
@property (nonatomic, retain) UIScrollView          *scrollView;
@property (nonatomic, retain) NSMutableArray        *imageDataArray;
@property (nonatomic)         BOOL          containPictureInfo;
@property (nonatomic)         BOOL          loadWeb;
@property (nonatomic)         BOOL          isCity;
@property (nonatomic)         int           currentPageNumber;
@property (nonatomic, retain) NSMutableArray       *imageViewArray;
@property (nonatomic, retain) NSString      *coverUrl;
@property (nonatomic, retain) NSString      *sid;
@property (nonatomic, assign) BOOL          shouldShowAnimation;
@property (nonatomic, assign) BOOL          hideExtraInfo;
@property (nonatomic, assign) BOOL          showHideInfoWhenScrollDidEnd;

@property (nonatomic,assign) id<LVPhotoPreviewViewControllerDelegate>animationDelegate;

-(id)initWithRequestParam:(NSArray *)imageArr CurrentPageNumber:(int)pageNumber  IsContainPictureInfo:(BOOL)containInfo LoadFromWeb:(BOOL)loadFromWeb;

-(void) setFromImage:(UIImage *) image fromWindowRect:(CGRect) rect;
@end



